﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="LoginForm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MWSContentPlaceHolder1" Runat="Server">
    <p align="right" style="width: 784px">
    <table align=right>
<tr>
<td>First Name:</td>
<td><asp:TextBox ID="txtFirstName" runat="server">
   </asp:TextBox>
</td>
<td><asp:RequiredFieldValidator ID="rfvFirstName" 
            runat="server" 
            ControlToValidate="txtFirstName"
            ErrorMessage="First Name can't be left blank" 
            SetFocusOnError="True">*
     </asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>Last Name:</td>
<td><asp:TextBox ID="txtLastName" runat="server">
    </asp:TextBox></td>
<td><asp:RequiredFieldValidator 
         ID="RequiredFieldValidator1" runat="server" 
         ControlToValidate="txtLastName"
         ErrorMessage="Last Name can't be left blank" 
         SetFocusOnError="True">*
    </asp:RequiredFieldValidator>
</td></tr>
 
<tr><td>User Name:</td>
<td><asp:TextBox ID="txtUserName" runat="server">
    </asp:TextBox>
</td>
<td><asp:RequiredFieldValidator 
         ID="rfvUserName" 
         runat="server" 
         ControlToValidate="txtUserName"
         ErrorMessage="UserName can't be left blank" 
         SetFocusOnError="True">*
    </asp:RequiredFieldValidator>
</td></tr>
 
<tr><td>Password:</td>
<td><asp:TextBox ID="txtPwd" runat="server"
                 TextMode="Password">
    </asp:TextBox>
</td>
<td><asp:RequiredFieldValidator ID="rfvPwd" 
         runat="server" ControlToValidate="txtPwd"
         ErrorMessage="Password can't be left blank" 
         SetFocusOnError="True">*
   </asp:RequiredFieldValidator>
</td></tr>
 
<tr><td>Confirm Password:</td>
<td><asp:TextBox ID="txtRePwd" runat="server"
                 TextMode="Password">
    </asp:TextBox>
</td>
<td><asp:CompareValidator ID="CompareValidator1" 
         runat="server" 
         ControlToCompare="txtRePwd" 
         ControlToValidate="txtPwd" 
         Operator="Equal" 
         ErrorMessage="Password and confirm password do not match" 
         SetFocusOnError="True">
    </asp:CompareValidator>
</td></tr>
  
<tr><td>Address:</td>
<td><asp:TextBox ID="txtAddress" runat="server" 
                 TextMode="MultiLine">
    </asp:TextBox>
</td>
<td><asp:RequiredFieldValidator ID="rfvAddress" 
         runat="server" 
         ControlToValidate="txtAddress"
         ErrorMessage="Address can't be left blank" 
         SetFocusOnError="True">*
    </asp:RequiredFieldValidator>
</td></tr>

<tr><td>City:</td>
<td><asp:TextBox ID="txtCity" runat="server">
    </asp:TextBox>
</td>
<td><asp:RequiredFieldValidator 
         ID="rfvCity" 
         runat="server" 
         ControlToValidate="txtCity"
         ErrorMessage="City can't be left blank" 
         SetFocusOnError="True">*
    </asp:RequiredFieldValidator>
</td></tr>

<tr><td>State:</td>
<td><asp:DropDownList ID="ddState" runat="server">
 <asp:ListItem Value="AK">Alaska</asp:ListItem>

    <asp:ListItem Value="AL">Alabama</asp:ListItem>

    <asp:ListItem Value="AR">Arkansas</asp:ListItem>

    <asp:ListItem Value="AZ">Arizona</asp:ListItem>

    <asp:ListItem Value="CA">California</asp:ListItem>

    <asp:ListItem Value="CO">Colorado</asp:ListItem>

    <asp:ListItem Value="CT">Connecticut</asp:ListItem>

    <asp:ListItem Value="DC">District of Columbia</asp:ListItem>

    <asp:ListItem Value="DE">Delaware</asp:ListItem>

    <asp:ListItem Value="FL">Florida</asp:ListItem>

    <asp:ListItem Value="GA">Georgia</asp:ListItem>

    <asp:ListItem Value="HI">Hawaii</asp:ListItem>

    <asp:ListItem Value="IA">Iowa</asp:ListItem>

    <asp:ListItem Value="ID">Idaho</asp:ListItem>

    <asp:ListItem Value="IL">Illinois</asp:ListItem>

    <asp:ListItem Value="IN">Indiana</asp:ListItem>

    <asp:ListItem Value="KS">Kansas</asp:ListItem>

    <asp:ListItem Value="KY">Kentucky</asp:ListItem>

    <asp:ListItem Value="LA">Louisiana</asp:ListItem>

    <asp:ListItem Value="MA">Massachusetts</asp:ListItem>

    <asp:ListItem Value="MD">Maryland</asp:ListItem>

    <asp:ListItem Value="ME">Maine</asp:ListItem>

    <asp:ListItem Value="MI">Michigan</asp:ListItem>

    <asp:ListItem Value="MN">Minnesota</asp:ListItem>

    <asp:ListItem Value="MO">Missouri</asp:ListItem>

    <asp:ListItem Value="MS">Mississippi</asp:ListItem>

    <asp:ListItem Value="MT">Montana</asp:ListItem>

    <asp:ListItem Value="NC">North Carolina</asp:ListItem>

    <asp:ListItem Value="ND">North Dakota</asp:ListItem>

    <asp:ListItem Value="NE">Nebraska</asp:ListItem>

    <asp:ListItem Value="NV">Nevada</asp:ListItem>

    <asp:ListItem Value="NH">New Hampshire</asp:ListItem>

    <asp:ListItem Value="NJ">New Jersey</asp:ListItem>

    <asp:ListItem Value="NM">New Mexico</asp:ListItem>

    <asp:ListItem Value="NY">New York</asp:ListItem>

    <asp:ListItem Value="OH">Ohio</asp:ListItem>

    <asp:ListItem Value="OK">Oklahoma</asp:ListItem>

    <asp:ListItem Value="OR">Oregon</asp:ListItem>

    <asp:ListItem Value="PA">Pennsylvania</asp:ListItem>

    <asp:ListItem Value="RI">Rhode Island</asp:ListItem>

    <asp:ListItem Value="SC">South Carolina</asp:ListItem>

    <asp:ListItem Value="SD">South Dakota</asp:ListItem>

    <asp:ListItem Value="TN">Tennessee</asp:ListItem>

    <asp:ListItem Value="TX">Texas</asp:ListItem>

    <asp:ListItem Value="UT">Utah</asp:ListItem>

    <asp:ListItem Value="VA">Virginia</asp:ListItem>

    <asp:ListItem Value="VT">Vermont</asp:ListItem>

    <asp:ListItem Value="WA">Washington</asp:ListItem>

    <asp:ListItem Value="WI">Wisconsin</asp:ListItem>

    <asp:ListItem Value="WV">West Virginia</asp:ListItem>

    <asp:ListItem Value="WY">Wyoming</asp:ListItem>
    </asp:DropDownList>
</td>
</tr>

<tr><td>ZIP Code:</td>
<td><asp:TextBox ID="txtZip" runat="server">
    </asp:TextBox>
</td>
<td><asp:RequiredFieldValidator 
         ID="rfvZip" 
         runat="server" 
         ControlToValidate="txtZip"
         ErrorMessage="ZIP code can't be left blank" 
         SetFocusOnError="True">*
    </asp:RequiredFieldValidator>
</td></tr>

                        
<tr><td><asp:Label ID="lblMsg" runat="server">
        </asp:Label>
    </td>
<td><asp:ValidationSummary ID="ValidationSummary1" 
         runat="server" ShowMessageBox="True" 
         ShowSummary="False"/>
</td></tr>
 
<tr><td>
    <asp:Button ID="btnSave" runat="server" 
                    Text="Sign Up" 
                    onclick="btnSave_Click" style="width: 68px"/>
</td></tr>
</table>
    </p>
    
</asp:Content>

